package com.eastcode.mobile.server.user.entity;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Id;

import com.googlecode.objectify.annotation.Cached;

/**
 * 位置
 * 
 * @author 王一进
 * 
 */
@Cached
public class Location implements Serializable {

	private static final long serialVersionUID = 7107921328912401901L;

	/** 主键 **/
	@Id
	private Long id;

	/** 用户ID **/
	private String userId;

	/** 定位结果：161未定位成功 **/
	private String error;

	/** 定位点的经纬度 **/
	private String x;

	/** 定位点的经纬度 **/
	private String y;

	/** 误差 **/
	private String radius;

	/** 详细位置 **/
	private String detail;

	/** 创建时间 **/
	private Date time;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getError() {
		return error;
	}

	public void setError(String error) {
		this.error = error;
	}

	public String getX() {
		return x;
	}

	public void setX(String x) {
		this.x = x;
	}

	public String getY() {
		return y;
	}

	public void setY(String y) {
		this.y = y;
	}

	public String getRadius() {
		return radius;
	}

	public void setRadius(String radius) {
		this.radius = radius;
	}

	public String getDetail() {
		return detail;
	}

	public void setDetail(String detail) {
		this.detail = detail;
	}

	public Date getTime() {
		return time;
	}

	public void setTime(Date time) {
		this.time = time;
	}

}
